import request from '@/utils/request'


export function listCar(query) {
  return request({
    url: '/iot/car/list',
    method: 'get',
    params: query
  })
}



export function addCar(data) {
  return request({
    url: '/iot/car/add',
    method: 'post',
    data: data
  })
}


export function updateCar(data) {
  return request({
    url: '/iot/car/edit',
    method: 'post',
    data: data
  })
}


export function getCar(id) {
  return request({
    url: '/iot/car/' + id,
    method: 'get'
  })
}


export function delCar(ids) {
  return request({
    url: '/iot/car/remove/' + ids,
    method: 'post'
  })
}
